package com.hm.two;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class GirlFriend {
	@Autowired
	private Villa villa;
	
	public Villa villa() {
		return villa;
	}

	public Villa getVilla() {
		return villa;
	}

	public void setVilla(Villa villa) {
		this.villa = villa;
	}

	@Override
	public String toString() {
		return "XiaoMing [villa=" + villa + "]";
	}

	public GirlFriend(Villa villa) {
		this.villa = villa;
	}

	public GirlFriend() {
	}
	
}
